//------------------------------------------------------------------------------
// <copyright file="HashAlgorithmExtension.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace DAnton.Utilities.Extensions
{
    public static class HashAlgorithmExtension
    {
        public static bool AreHashesSame(this HashAlgorithm hashAlgorithm, byte[] firstHash, byte[] secondHash)
        {
            return BitConverter.ToString(firstHash) == BitConverter.ToString(secondHash);
        }
    }
}
